package com.easyssh.framework.exception;



/**
 * 系统异常处理
 * @ClassName: WebException
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author liangyuanbing
 * @date 2015年12月18日
 *
 */
public class WebException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public WebException(String frdMessage) {
		super(createErrMsg(frdMessage));
	}

	public WebException(Throwable throwable) {
		super(throwable);
	}

	public WebException(Throwable throwable, String frdMessage) {
		super(createErrMsg(frdMessage), throwable);
	}

	private static String createErrMsg(String msgBody) {
		StringBuffer errMsg = new StringBuffer("");
		errMsg.append("抱歉，");
		errMsg.append(msgBody);
		errMsg.append(" 请稍后再试或与管理员联系！");
		return errMsg.toString();
	}

}
